package net.maku.qdd.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;

/**
 * 交易记录
 *
 * @author MAKU babamu@126.com
 * <a href="https://maku.net">MAKU</a>
 */

@Data
@TableName("transaction")
public class TransactionEntity {
	/**
	* 交易id
	*/
	@TableId
	@TableField(value = "transaction_id")
	private Integer transactionId;

	/**
	* 商品id
	*/
	@TableField(value = "goods_id")
	private Integer goodsId;

	/**
	* 商家id
	*/
	@TableField(value = "merchant_id")
	private Integer merchantId;

	/**
	* 券id
	*/
	@TableField(value = "ticket_id")
	private Integer ticketId;

	/**
	* 1交易成功,0交易失败
	*/
	@TableField(value = "transaction_status")
	private Integer transactionStatus;

	/**
	* 交易数量
	*/
	@TableField(value = "transaction_num")
	private Integer transactionNum;

	/**
	* 成交价格
	*/
	@TableField(value = "deal_price")
	private Float dealPrice;

}